package com.aaa.sbm.controller;

import com.aaa.sbm.service.UserService;
import com.aaa.sbm.util.Result;
import com.aaa.sbm.util.ResultUtil;

/**
 * @FileName: UserController
 * @Description:
 * @Author: zhz
 * @CreateTime: 2025/8/27 9:13
 * @Version: 1.0.0
 */
public class UserController {
    public UserController() {
        System.out.println("UserController被实例化了-------------------");
    }

    private UserService userService;


    /**
     * 根据编号查询
     * @param userId
     * @return
     */
    public Result queryById(Integer userId){
        System.out.println("执行了根据编号查询对象的方法");
        return ResultUtil.success("模拟方法");
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }
}
